import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui'


import '@/permission' // permission control

import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/main.scss'
import '@/styles/index.scss'

import '@/icons' // icon


Vue.config.productionTip = false;




// if (process.env.NODE_ENV === 'production') {
const { mockXHR } = require('../mock')
mockXHR()
    // }


//启动配置文件
import boot from './config/boot'

boot.configAnime(); //配置Anime

Vue.config.productionTip = false
Vue.use(ElementUI)

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')